﻿@using JPW.OnlinePaperSubmissionSystem.Authorization
<style>
    #mainGrid .k-grid-content, #mainGrid tr td {
        overflow: visible;
    }
</style>
<div ng-controller="tenant.views.files.index as vm">
     <div class="row margin-bottom-5">
        <div class="col-xs-6">
            <div class="page-head">
                <div class="page-title">
                    <h1>
                        <span>@L("Files")</span> <small>@L("Files")</small>
                    </h1>
                </div>
            </div>
        </div>
        <div class="col-xs-6 text-right">
            <button ng-if="vm.permissions.create" class="btn btn-primary blue" ng-click="vm.createFiles()"><i class="fa fa-plus"></i> @L("Create")</button>
            <button ng-if="vm.permissions.edit" class="btn btn-primary blue" ng-click="vm.editFiles()"><i class="fa fa-plus"></i> @L("Edit")</button>
            <button ng-if="vm.permissions.delete" class="btn btn-primary blue" ng-click="vm.deleteFiles()"><i class="fa fa-plus"></i> @L("Delete")</button>
        </div>
    </div>
    <div class="portlet light">
        <div class="portlet-title">
            <div class="inputs inputs-full-width">
                <div class="portlet-input">
                    <form>
                        <div class="input-group">
                            <input ng-model="vm.filterText" auto-focus class="form-control" placeholder="@L("SearchWithThreeDot")" type="text">
                            <span class="input-group-btn">
                                <button ng-click="vm.getFiless()" class="btn btn-default" type="submit"><i class="icon-magnifier"></i></button>
                            </span>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="portlet-body">
            <div busy-if="vm.loading">
                 <div id="mainGrid" kendo-grid="vm.mainGrid" options="vm.mainGridOptions">
            </div>
        </div>
    </div>
</div>
 </div>
